#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>
typedef int HeapDataType;
typedef struct Heap
{
	HeapDataType* data;
	int size;
	int capacity;
}Heap;
void HeapInit(Heap* php);
void HeapDestroy(Heap* php);
void HeapPush(Heap* php, HeapDataType x);
void AdjustUp(Heap* php,size_t child);
void swap(HeapDataType* pa, HeapDataType* pb);
void HeapPrint(Heap* php);
void HeapPop(Heap* php);
void AdjustDown(Heap* php, size_t root);
bool HeapEmpty(Heap* php);
size_t HeapSize(Heap* php);
HeapDataType HeapTop(Heap* php);